#ifndef _WORLD_SESSION_HPP
#define _WORLD_SESSION_HPP
#include <memory>
#include "WorldSocket.hpp"

class WorldSession : public std::enable_shared_from_this<WorldSession>
{
public:
    WorldSession(std::shared_ptr<WorldSocket>&& sc);
    ~WorldSession();
public:
    // real logic
    bool Update(uint32_t diff);
    std::shared_ptr<WorldSocket>& GetSocket();
private:
    std::shared_ptr<WorldSocket> _socket;
};

#endif